Xbasic

INDEX.PERSIST Function

Syntax

V Persist(L keep)

Arguments

keep

.T. = Preserve the query, .F. = Discard the query if necessary.

Description

If the index is a query, then set flag to indicate if it should stay around.

Discussion

The .PERSIST() method sets a flag to indicate that a query that is used as an index should be preserved.

Example

dim tbl as P
dim indx as P
tbl = table.open("customer")
indx = tbl.index_primary_put("Lastname")
indx.persist(.t.)

See Also